From: Jasper St. Pierre Date: Wed, 28 Nov 2012 20:43:14 +0000 (-0500) Subject: scroll-bar: Remove jitter on the scroll bar when moving the mouse X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~5346 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2492dc50db89042d19edb2210fdeac7f5c54d8db;p=gnome-shell.git scroll-bar: Remove jitter on the scroll bar when moving the mouse This was due to incorrect pixel clamping, which bounced the height of the actor between values. Just remove pixel clamping, as Clutter will correctly do it for us. https://bugzilla.gnome.org/show_bug.cgi?id=689243 --- diff --git a/src/st/st-scroll-bar.c b/src/st/st-scroll-bar.c index f9c4c0887..2e1f125c6 100644 --- a/src/st/st-scroll-bar.c +++ b/src/st/st-scroll-bar.c @@ -270,12 +270,6 @@ scroll_bar_allocate_children (StScrollBar *bar, handle_box.y2 = content_box.y2; } - /* snap to pixel */ - handle_box.x1 = (int) handle_box.x1; - handle_box.y1 = (int) handle_box.y1; - handle_box.x2 = (int) handle_box.x2; - handle_box.y2 = (int) handle_box.y2; - clutter_actor_allocate (priv->handle, &handle_box, flags);